package cn.fsw.pethome.org.mapper;

import cn.fsw.pethome.org.domain.Shop;
import cn.fsw.pethome.base.mapper.BaseMapper;
import cn.fsw.pethome.org.domain.po.ShopCO;
import cn.fsw.pethome.org.domain.po.ShopPO;
import cn.fsw.pethome.org.domain.po.ShopVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fsw
 * @since 2022-10-09
 */
@Repository
public interface ShopMapper extends BaseMapper<Shop> {
    Long countName(String name);
    Long countTel(String tel);
    Long countAddress(String address);
    /*批量添加*/
    void batchAdd(List<Shop> list);
    /*根据注册时间统计店铺注册数量*/
    List<ShopPO> chartLine();
   /*按照状态统计店铺数量*/
    List<ShopVo> chartColumn();
    /*根据地址统计店铺数量*/
    List<ShopCO> chartBar();
}
